Converting avro objects into pig tuples