def ConvertListToStr(values, sep=', ', textMarker='', keepType=False):
    """
    converts a python list to string. .
    the list items are seperated by ",". list items are converted to string
    """
    if not values:
        return ''
    if isinstance(values, str):
        return '%s%s%s' % (textMarker, values, textMarker)
    s = []
    for v in values:
        if textMarker != '':
            tm = textMarker
            if keepType:
                if isinstance(v, (int, float)):
                    tm = ''
            s.append('%s%s%s' % (textMarker, str(v), textMarker))
        else:
            s.append(str(v))
    return sep.join(s)
