Python itertools recipes and extras