Rust Create Function In Python