corrected formatting errors and ran PEP8 checker