tuning for python programming