def clean_kwargs(kwargs):
    """Format the kwargs to conform to API"""
    for key, value in kwargs.iteritems():
        if hasattr(value, '__iter__'):
            kwargs[key] = ','.join(map(str, value))
