updated txttojson python file