if for python irc bot there are several libraries, I suggest you to try https://sopel.chat because I also use it until now.
if for the problem you are experiencing, it might be better to do a connection debut so you can get information from there