Moved testing/common/fit.py to pysawsim/fit.py and cleaned up.