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