I think this is required for py3 where map returns an iterator.