def comma(member, memberList):
    """ Convenience function for processing comma lists.
    A comma is returned for all but the last member in the list """
    if not (member is memberList[-1]):
        return ','
    else:
        return ''