Python classes that deal with fraction computations