Initial port of mountain car to Python