import importlib


def _load_player_class(package_name, class_name):
    """
    Load a Player class given the name of a package.
    """
    module = importlib.import_module(package_name)
    player_class = getattr(module, class_name)
    return player_class