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.