Hide the irc client inside a function...

...to get around top-level imports.

This should fix #274.
You probably lost pep8 here