write python code for pythonGrid.py