[components] reorder utils.py
[components] reorder utils.py

No functional change. Only code moved around.

I want to add new code, but I felt this file was due for a reordering
first. The new code will be in Handler section.

R=5de1a387cc854ff3d04fab3d66d4e77a58511771@chromium.org

Bug: 895493
Change-Id: I074027fea7948515b1b1aece6f464b78e93985a7
Reviewed-on: https://chromium-review.googlesource.com/c/1286911
Reviewed-by: Jao-ke Chin-Lee <5de1a387cc854ff3d04fab3d66d4e77a58511771@chromium.org>
Commit-Queue: Marc-Antoine Ruel <d2bf0fc09b08f7b0888b3ddab32b3e89c7122c8b@chromium.org>

luci/luci-py,luci/luci-py,luci/luci-py,luci/luci-py