rename map in generalmap

map is a keyword in python.
https://docs.python.org/2/library/functions.html#map