def _get_param_type(name: str, value: str) -> type:
    """Map parameter type to Python type.

    :param name: parameter name
    :param value: parameter type
    :return: Python type
    """
    t = {"str": str, "int": int}.get(value, None)

    if not t:
        raise Exception(f"unknown type {value} for param {name}")

    return t