made controllers/fitting.py neater