fixed off-by-one turn being printed
fixed render not being checked for pep8 conformance