Fix pep8 and rename to mark_in_config
Add tests for catching exception in mainloop

* Add tests for the exception catched in GLib.idle_add
* Ensure we exit with the right value
* catch BaseException instead of Exception (more generic)
* Use the decoration for any GLib.idle_add to protect against those exceptions
* Refactor tests due to those changes (including sys.exit direct call)
Fix tools tests with API change
Adapt interactions tests to new API

* Change tests for new interactions API
* Add more tests and fix bugs in the interactions option