Performance Tuning Classes For Python Example Code