Maze solvers and generators in python