Python interface for new API (Map/Reduce)