def has_function(module, function):
    """
        Checks wether the supplied module has the specified string as function.
    """
    if hasattr(module, function):
        return callable(getattr(module, function))
    else:
        return False