Performance Tuning Classes For Python Code