formatted contours.py for pep8