Define NullHandler for Python <= 2.6

Closes #219