minor syntax/pep8 updates