import keyword


def esc_kw(token: str) -> str:
    """ Escape python keywords

    :param token: token
    :return: token with '_' suffixed if it is a keyword
    """
    return token + '_' if keyword.iskeyword(token) else token