Added python2 test for writing json-info to stdout