changed cost.py to conform to pep8

Fixed costs/cost.py as a part of #821