Fix map call for Python 3