logs module: enable unit tests in python 3

The module is already marked as Python 3 compatible, but the unit tests were not enabled for python 3. This PR fixed it, with one minor improvement for json import.