Why is it written in Rust though? I'd prefer a pure Python solution.