fitting.py