Reformat code to conform to PEP8