Imports from stdlib should go to the top (check http://www.python.org/dev/peps/pep-0008/#imports)