utils.py
def flattenAndExpandList(listToFlatten):
    """ expands a list, rejoins them with a comma delimited flattened string """
    flatStringList = []
    for listItem in listToFlatten:
        flatString = " ".join(
            "{!s}: {!s}".format(key, value) for (key, value) in listItem.items()
        )
        flatStringList.append(flatString)
    flatString = ", ".join(flatStringList)
    return flatString
 expands a list, rejoins them with a comma delimited flattened string 
expands a list, rejoins them with a comma delimited flattened string
expands a list rejoins them with a comma delimited flattened string
def flattenAndExpandList(listToFlatten):
    flatStringList = []
    for listItem in listToFlatten:
        flatString = " ".join(
            "{!s}: {!s}".format(key, value) for (key, value) in listItem.items()
        )
        flatStringList.append(flatString)
    flatString = ", ".join(flatStringList)
    return flatString
def flattenAndExpandList ( listToFlatten ) : flatStringList = [ ] for listItem in listToFlatten : flatString = " " . join ( "{!s}: {!s}" . format ( key , value ) for ( key , value ) in listItem . items ( ) ) flatStringList . append ( flatString ) flatString = ", " . join ( flatStringList ) return flatString
expands a list, rejoins them with a comma delimited flattened string
expands a list rejoins them with a comma delimited flattened string
""" expands a list, rejoins them with a comma delimited flattened string """
listToFlatten