Make module level loggers process aware

Fixes #1330.

The pull request contains two commits:
* one for Python 2.x and 3.x unification (in suggestion we do not support Python 3.0 and 3.1)
* one that fixes the issue for Python 2.x (and after applying the first commit for Python 3.x)