Sort all import lines.

Sort all import lines in Python codes in the following groups:
1. from __future__ import ...
2. stdlib imports
3. imports for third-party packages. (In particular, mox and mock).
4. "import (factory|instalog)_common", relative imports, imports in
   factory package.
5. imports from cros.factory.external, instalog.external.

BUG=b:73868308
TEST=make test

Change-Id: I606db7952deb37747f00fd542856aae4a693ebe0
Reviewed-on: https://chromium-review.googlesource.com/936350
Commit-Ready: Pi-Hsun Shih <pihsun@chromium.org>
Tested-by: Pi-Hsun Shih <pihsun@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
diff --git a/py/gooftool/commands.py b/py/gooftool/commands.py
index b59847c..e96589a 100755
--- a/py/gooftool/commands.py
+++ b/py/gooftool/commands.py
@@ -41,9 +41,9 @@
 from cros.factory.utils.debug_utils import SetupLogging
 from cros.factory.utils import file_utils
 from cros.factory.utils import json_utils
+from cros.factory.utils.process_utils import Spawn
 from cros.factory.utils import sys_utils
 from cros.factory.utils import time_utils
-from cros.factory.utils.process_utils import Spawn
 from cros.factory.utils.type_utils import Error