Add 2to3 configuration

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
Fix Python3 encoding errors
Fix IRCServer shutdown

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>