@classmethod
def mixin(cls):
    """
            mix all additional methods into the target class.
        """
    assert cls.target_class is not None
    for name, function in cls.methods.iteritems():
        setattr(cls.target_class, name, function)
