Is there an existing implementation of imp.find_module that works on dotted module names? It doesn't need to be bulletproof, it's okay if it won't work for some cases. But the more cases it works for, the better.
And please, don't try to implement this function in an answer. I've already implemented my version of it, I'm asking if there's an existing implementation because if there is one, it's probably much more tested than my version.