It is considered "Good Form" to group all imports together at the start of the file.
Modules can import other modules. It is customary but not required to place all import statements at the beginning of a module (or script, for that matter). The imported module names are placed in the importing module’s global symbol table.
From here: http://docs.python.org/tutorial/modules.html