Fixed python map method