Maze generator coded in python