Python interface for new API (Map/Reduce)

#615