Ported to Python 3.4
Fixed one log message.