def list_to_string(a_list, quote=False):
    """
    Converts a list to a set of strings separated by a comma.
    :param a_list: The list to convert.
    :type a_list: list
    :param quote: If true, then surround each item with quotes.
    :type quote: bool
    :return: The string version of the list.
    """
    if quote:
        string = ', '.join(('"{0}"'.format(v) for v in a_list))
    else:
        string = ', '.join(('{0}'.format(v) for v in a_list))
    return string