'Returns a comma+space-separated string of keywords from either
a list or a string'

@staticmethod
def get_keywords_as_string(keywords):

    if isinstance(keywords, list):
        keywords = ',    '.join(keywords)
    if isinstance(keywords, str):
        final_keywords = keywords
    elif isinstance(keywords, unicode):
        final_keywords = keywords.encode('utf-8')
    elif (keywords is None):
        final_keywords = ''
    else:
        raise TypeError(('keywords    argument    must    be    a    string    or    a    list    of    strings;    got    a    %s' % type(keywords)))
    return final_keywords
