py3k: Go through all uses of itertools and make them work on py3k