'from' lines come first. See the first paragraph under http://confluence.colo.lair/display/NEO/Python+Coding+Standards#PythonCodingStandards-ImportStatements