Imports should be ordered like this:

```python
import sys

from PyQt4 imoprt QtCore, QtGui
```

The general rule is built-in stuff, then third party stuff, then stuff from within your own module.