Modified all code to run under python2.7.

Aswell as refactoring pretty much everything about the bot.