Updated code to follow pep8 style