rust: fix issues with python during the build