replaced tabs with 4 spaces in fit.py

Following PEP coding conventions, use 4 spaces instead of tabs.
This should help readability across editors.
replaced tabs with 4 spaces in sim.py