Support Python’s numbers abstract base class

See also

PEP 3141 for more information about numbers.