grid.py pep8 compliance