def end(self):
        """Generate the closing part"""
        for depth in xrange(len(self.names) - 1, -1, -1):
            self.out_f.write('{0}}}\n'.format(self.prefix(depth)))
def end ( self ) : for depth in xrange ( len ( self . names ) - 1 , - 1 , - 1 ) : self . out_f . write ( '{0}}}\n' . format ( self . prefix ( depth ) ) )
Generate the closing part