Please follow pep8 import guidelines:

Imports should be grouped in the following order:

1. standard library imports
2. related third party imports
3. local application/library specific imports

You should put a blank line between each group of imports.

See http://www.python.org/dev/peps/pep-0008/#imports for more info.

It would be good to add a pep8 syntax checker to your editor so it will warn you of these things before you commit your changes.