Project Malmo comes with MalmoPython, which is a Python wrapper around a C++ library.
The C++ API is directly exposed using Boost.Python.
This library aims to provide a more Pythonic API by providing a higher level abstraction around common tasks.
Copy src/malmopy.py and put it together with MalmoPython.so.
malmo = malmopy.Malmo()
malmo.start_mission('missions/cliff_walking_1.xml')
# move forward 1m
malmo.move()
# turn left
malmo.turn_left()
# turn right
malmo.turn_right()
for obs in malmo.observations():
# agent policy