Small logging cleanup

* Global logger is used
* Small syntax errors fixed
fixed comments and made them py3k ready