python IRC bot with maximum modularity