def __register_func_sig(f, d):
    """
    registers all function names in global:functions.
    Only useful for print_funcs and get_function_signature right now, but later could be useful for online help
    #todo parse for signature and callback
    """
    bits = f.split(maxsplit=1)
    first_bracket = bits[1].find('(')
    f = bits[1][:first_bracket]
    rest = bits[1][first_bracket:]
    d[f] = rest
