Reimplementing my Python scripts in Rust