Fix problems with rotating logfile handler in newest python2.7.6.