Fix for Python 2.6 for missing functionality in the fractions stdlib module.