Make itertools usage python3-ready.