#NEWLINE# def _format_extra_attributes( self , attributes ) : #NEWLINE# #INDENT# result = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( key , value ) in six . iteritems ( attributes ) : #NEWLINE# #INDENT# if isinstance ( value , NON_OBJECT_TYPES ) : #NEWLINE# #INDENT# value = value #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( value , object ) : #NEWLINE# #INDENT# value = serialize_object ( obj = value ) #NEWLINE# #UNINDENT# #UNINDENT# value = process_attribute_value ( key = key [ 1 : ] , value = value ) #NEWLINE# result [ key ] = value #NEWLINE# #UNINDENT# return result