used python json option sort_keys instead of constructing my own json string.

Signed-off-by: John Thompson <jpthomps@ida.org>