Use for instead map for python3k compatibility