test: Remove complicated JSON->shell dict logic We can get the same result by individually parsing the JSON entities and that code is much simpler to understand and maintain. This also removes more inline Python code for better compatibility with different OS versions. Change-Id: I80d728f2c58993dc7a23811fd6a9214927e2835f