Code cleanups:

- remove obsolete traceback import
- use bot.WARNING instead of logging.WARNING already imported on top
- remove unused transLengt variable

Change-Id: Idef11ea1eaa729d76ed5ee40e254bbbd6fb292cc
Merge "Code cleanups:"