fixes for the console mode

* avoid loading modes (ie themes, tabbar ...) for console
* change the C-z to normal behaviour
* refactoring py-execution mode
* update main.sh to the newer changes