Pep8 style fixes for backend