cellular: Make ResetAllModems() wait for stable state.

ResetAllModems() returns before the modem is completely enabled in
shill.  This causes a race condition in tests that disable the modem
immediately after ResetAllModems() (eg.
network_3GDisableWhileConnecting).  Also fixed some pylint errors.

BUG=chromium:241705
TEST=network_3GDisableWhileConnecting

Change-Id: I7353f3eeb0c146445be507883fea3888bbad3ab7
Reviewed-on: https://gerrit.chromium.org/gerrit/57141
Commit-Queue: Thieu Le <thieule@chromium.org>
Reviewed-by: Thieu Le <thieule@chromium.org>
Tested-by: Thieu Le <thieule@chromium.org>
1 file changed