Performance Tuning In Python