python convert json string to tuple