Make the TanCarney examples work with Python 2.5 (do not use itertools.product)