Optimization Techniques In Python Example Codes