use json.loads instead of ast.literal_eval

It is only a happy coincidence that the json currently returned by the
metadata server is also valid python. This is not guaranteed to always
be the case.