example to use pig embedded in python