A class, which allows the addition of mixed metrics:
2.56 yd + 3 cm + 7.8 in
Using this class:
>>> from unit_conversions import Length as L
>>> print(L(2.56,"yd") + L(3,"cm") + L(7.8,"in"))
2.8094750656167973 yd
>>>