Python wrapper to loop over contigExtension.pig