Rename python reserved keyword fields before representing an OpenAPIParameter

def representCleanOpenAPIParameter(dumper, data):
    """
    Rename python reserved keyword fields before representing an OpenAPIParameter
    """
    dct = _orderedCleanDict(data)
    # We are using "in_" as a key for the "in" parameter, since in is a Python keyword.
    # To represent it correctly, we then have to swap "in_" for "in".
    # So we do an item-by-item copy of the dct so we don't change the order when
    # making this swap.
    d2 = OrderedDict()
    for k, v in dct.copy().items():
        if k == 'in_':
            d2['in'] = v
        else:
            d2[k] = v

    return dumper.yaml_representers[type(d2)](dumper, d2)