updated pig script to generated dict data