Labyrinth design based on Python