'Connection reset by peer' error with a really simply Python3 IRC client

im not sure how python works, but you might also want to wait to receive the welcome message before your join statement. after pass and nick, wait ttil you get that twisty maze stuff.