import importlib


def load_member(module, member):
    """
    Load a member (function, class, ...) from a module and return it

    :param str module: the module or package name where the class should be loaded from
    :param str member: the name of the member to be loaded
    """
    try:
        module = importlib.import_module(module)
    except ImportError:
        return None
    try:
        result = getattr(module, member)
    except AttributeError:
        return None
    return result