cast map object to list in py3