updated for pep8 compliance
updating in response to comments from @jrrideout