To avoid problems like that, I would suggest to make TagCompletion a singleton. Could you move its initialization from browser.py into gtk/manager.py ? Create a new method something like "get_tag_completion()" which returns the same object every time. It would solve your problems elegantly.
To avoid problems like that, I would suggest to make TagCompletion a singleton. Could you move its initialization from browser.py into gtk/manager.py ? Create a new method something like "get_tag_ completion( )" which returns the same object every time. It would solve your problems elegantly.