logs module: enable unit tests in python 3
Merge pull request #2448 from felixonmars/logs-py3

logs module: enable unit tests in python 3. Fixes #2448.