def get_py_param_type(context):
    """convert a param type into python accepted format.
    Related to the formats accepted by the parameter under dynamic reconfigure

    Args:
        context (dict): context (related to an interface description)

    Returns:
        str: variable type in python format related to param components

    Examples:
        >>> context = {desc="an interface" name="misc" type="std::string"/>
        >>> get_py_param_type(context)
        "str_t"
    """
    param_type = context['type']
    if param_type not in ['std::string', 'string', 'int', 'double', 'bool']:
        raise SyntaxError("Invalid type for param {}".format(param_type))
    if param_type in ['std::string', 'string']:
        return 'str_t'
    if param_type == 'int':
        return 'int_t'
    if param_type == 'double':
        return 'double_t'
    if param_type == 'bool':
        return 'bool_t'