inject.py: class that eases monkey patching

The class Inject can be used as a base class for a metaclass
that performs monkey patching.
block.py: using Inject to add methods to Block