changed map format to python style