#NEWLINE# def next( self ) : #NEWLINE# #INDENT# val = self . __cursor . next ( ) #NEWLINE# if ( ( type ( val ) == list ) or ( type ( val ) == dict ) ) : #NEWLINE# #INDENT# return MongoWrapper ( self ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return val