Was there a circular import problem?  I'm just asserting that under the normal guidelines of "if there isn't a circular import problem, don't put imports inside functions" (which I admit to having gone against in the past), this would be good to change move to the top of the file (and in any case it's a dependency either way so the comment is not correct).