i3pystatus creates a logger that can be imported via import i3pystatus.logger . Thus when modules enable the 'enable_log' setting, it should log i3pystatus errors to a file called '.i3pystatus-<pid>'. This commit only solves the case when email_client was called in the email module and would output things into stderr/stdout.
Various pep8 and comments removal + converted shell module to use run_through_shell command
Added missing r to IntevalSettings in test_core_modules
Make sure that we use python3 pep8
This commit improves the logging system: instead of setting a boolean to enable logging, the user sets a logging level (per module). By default only critical errors are logged (ie nothing for now).

Also adds a test for the function run_through_shell
Merge pull request #147 from teto/log_stderr

Log stderr
This is a hack to work around notmuch's API limitations. We redirect stderr and if the library outputted sthg, we reopen the notmuch database. More infos on https://github.com/enkore/i3pystatus/issues/121
The fix is only valid for python3.4
Merge branch 'fix_notmuch' of github.com:teto/i3pystatus into fix_notmuch