[PATCH v2 1/3] test/py: rewrite common tools for SquashFS tests