Convert map object to list for python 3.