add NullHandler logging handler support for python < 2.7