use itertools.izip instead of zip