This import was moved from the top to the bottom, and pep8 suggests [1] it should be at the top.

[1] http://www.python.org/dev/peps/pep-0008/#imports