Merge "Made style and refactoring changes to command.py and command_executor_unit_test.py." into main am: cd38c1370c

Original change: https://android-review.googlesource.com/c/platform/system/extras/+/3251631

Change-Id: I38a93404896814077ebdd3ef3cf7ceb03af247d7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>