Py3 exception logging, issue #17

Previous commit didn't verify logging of exceptions.

Critical issues:
- types.TypeType is now built-in, added legacy switch
- filter yields `TypeError: 'filter' object is not subscriptable`,
changed to list comprehension (since it was used already the previous
line)

2to3 also complained the use of map over list comprehension, changed for
similar rationale.
Revert "Py3 exception logging, issue #17"

This reverts commit ef6dd5875e37ebec13a8a7fa06f849161b35b2bf.
Py3 exception logging, issue #17

Previous commit didn't verify logging of exceptions.

Critical issues:
- types.TypeType is now built-in, added legacy switch
- filter yields `TypeError: 'filter' object is not subscriptable`,
changed to list comprehension (since it was used already the previous
line)

2to3 also complained the use of map over list comprehension, changed for
similar rationale.
Merge remote-tracking branch 'origin/py3py2'