Added generic macro to easily take into account the bridge pattern in the python TUI
Minor bugfix in the previous commit