Fix EventLoggerAdapter to work on py2.6