Moved imports to top level

This one should fix the previous issue.  Using `from _____ import _____` results in a circular import since the module itself is run, but using a straight `import ______ as ______` should be fine.