Rust Debug Function In Python In Pynative While Loop