Pig script that uses a python UDF to calculate percentiles