fixed python 3 map identity fuction