def __enforce_only_strings_dict(dictionary):
    '''
    Returns a dictionary that has string keys and values.
    '''
    ret = {}

    for key, value in iteritems(dictionary):
        ret[six.text_type(key)] = six.text_type(value)

    return ret
def __enforce_only_strings_dict ( dictionary ) : ret = { } for key , value in iteritems ( dictionary ) : ret [ six . text_type ( key ) ] = six . text_type ( value ) return ret
Returns a dictionary that has string keys and values.