vcf_out = pysam.VariantFile(sys.argv, 'w', header=myvcf.header)
for variant in myvcf:
for key in variant.info.keys():
if not (key=="TYPE" or key=="FUNC"):
Assumes single sample VCF. Modify according to your requirement. You need to work on changing the FUNC values to desired output. It should be straight forward if you know a bit of python.
These sites are too general but also may be helpful:
thanks for the links, always nice to have to get more infor **