Formatting fixes to scal.py