Consider not using any language other than Rust
Right now your code contains 0.6% of Python code which can be used as attack vector and a 0.1% of C code where developers haven't enforced to memory safety. Shell(0.9%) scripts can not be compatible with different with OS and can be used as potential attack vector.