def _format_param_value(key, value):
    """Wraps string values in quotes, and returns as 'key=value'.
    """
    if isinstance(value, str):
        value = "'{}'".format(value)
    return "{}={}".format(key, value)
Wraps string values in quotes, and returns as 'key=value'.