world = renderer('buildnew')
world()
First you make an instance of the renderer class and store it to world.
But then you write world()
, which is wrong cause this object is not callable.
If you want to make world
a callable object, you should implement the __call__
method in the renderer class.