minor nanops pep8 fixes