[pythonconsole] Fix PyGobject deprecation warnings
[export-to-folder] Fix PyGObject deprecation warning