Update and format irc.py with documentation

Updates irc.py with type specifications in doc strings.

Formats irc.py