Reworking of an IRC Bot, from PHP to Python