Some code cleaning modules/gui.py
Some code cleaning in modules/log.py