Can't you like wrap stuff into classes or something? or like use `functools.partial` to pass the objects to those functions that you say have no access to stuff, just pass that stuff to that function
I think I figured it out