added fit.py