map returns an iterator in Python 3