fix logger.addHandler(NullHandler) in python2.6 (NullHandler is py2.7+)