Make sure maps are cast into lists for python 3 compatibility