map returns an iterator in python3.