Fix logging subclasses for Python 2.6