added py2.x for map