Rust Coding Example Python Class