format map function in python