Optimize Python Code for High-Speed Execution