Correction of a bug in determining the clicked icon
Add the possibility to 'run' a python command like 
self.qtile.cmd_shutdown() to logout