the "import" statement

In IDLE, I can import a module and do something like this:
import mymod
myfunc() #works without module name

But in Blender I need to do this:
import mymod
mymod.myfunc() #must add module name

Am I doing something wrong or is this just the way Blender works with Python?

Nevermind… the module name is not necessary in interactive mode in IDLE but it is in a script.