neverending maze in python