works, passes tests, ready for final review
Automatic style corrections courtesy of autopep8