arm/tests.py: improved readability, subprocess wrappers moved to separate module