#NEWLINE# def dict_strip_unicode_keys( uni_dict ) : #NEWLINE# #INDENT# '\n    Converts a dict of unicode keys into a dict of ascii keys.\n\n    Useful for converting a dict to a kwarg-able format.\n    ' #NEWLINE# if six . PY3 : #NEWLINE# #INDENT# return uni_dict #NEWLINE# #UNINDENT# return { smart_bytes ( key ) : value for ( key , value ) in uni_dict . items ( ) }