def kwargs_to_list(kwargs):
    """
    Turns {'a': 1, 'b': 2} into ["a-1", "b-2"]
    """
    kwargs_list = []
    # Kwargs are sorted in alphabetic order by their keys.
    # Taken from http://www.saltycrane.com/blog/2007/09/how-to-sort-python-dictionary-by-keys/
    for k, v in items_sorted_by_key(kwargs):
        kwargs_list.append(str(k) + '-' + str(force_string(v)))
    return kwargs_list
Turns {'a': 1, 'b': 2} into ["a-1", "b-2"]