map object returns an iterator, not a list, in python 3. fix: list(map()) is still compatible with python 2