def METHOD_NAME(self, method, data=()):
    """
    Invoke a function from the global namespace with the given parameters.
    :param method: The name of the function to invoke.
    :type method: str
    :param data: The parameters to pass to the function, defaulting to no parameters.
    :type data: Iterable
    """
    # convert to list
    params = list(data)
    # Lookup the method in the global namespace
    # Much much faster than using eval()
    globals()[method](*params)