imports should be declared after the header.

and the lines below MUST be the first 2 lines of a python file.
<pre>
#!/usr/bin/python
# -*- coding: utf-8 -*-
</pre>