def __bind(fromfunction, tofunction):
    """
    binds the required elements of a fromfunction to the tofunction
    """
    tofunction.__name__ = fromfunction.__name__
    tofunction.__doc__ = fromfunction.__doc__
    return tofunction
