import keyword


def is_valid_pkg_name(pkg_name):
    """Check that the given name is a valid python package name."""
    if keyword.iskeyword(pkg_name):
        return False
    return pkg_name.isidentifier()