Creation of GenMesh.py script (analogous to GenMeshMatlab.m)