irc: convert parser to python3