Best Practices For Python Code Optimization