#NEWLINE# def copy_to_unicode( element ) : #NEWLINE# #INDENT# ' used to transform the lxml version of unicode to a\n    standard version of unicode that can be pickalable -\n    necessary for linting ' #NEWLINE# if isinstance ( element , dict ) : #NEWLINE# #INDENT# return { element : copy_to_unicode ( val ) for ( key , val ) in element . items ( ) } #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( element , list ) : #NEWLINE# #INDENT# return list ( map ( copy_to_unicode , element ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return '' . join ( element ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# return element