(internal) injects a function object into a RPyC connection object.

def _inject_func(func, conn):
    """
    (internal) injects a function object into a RPyC connection object.
    """
    name = func.__name__
    if not name in conn.namespace:
        if isbuiltin(func):
            inject_code = '%s = %s' % (name, name)
        elif isfunction(func):
            inject_code = getsource(func)
        conn.execute(inject_code)
    return conn.namespace[name]