updated all code to use PEP8 formatting guidelines