fix map in python 2.x