Optimization Techniques In Python Example