made changes to make python into pep8 style