Update reloading for Python 3

The reload function isn't a builtin under Python 3, so I'm importing the
imp module. I suspect this will break ST2 compatibility.