NameError (global name ... is not defined) when using reload() in Python 2.7 : Unfortunately I get an NameError on reloading a module in Python 2.7.

    class MyQThread(QtCore.QThread)
        import myModule
        def __init__(self, parent=None)
            super(MyQThread, self).__init__(parent)

        def run
            reload(myModule)
            print("Reloaded")
            #...do something

And when I use 

`>>>thread = MyQThread()`

`>>>thread.start()`

I got this in the shell:

> NameError: global name 'myModule' is not defined

Any advice?