add python script to fix gate output and transform it to rdf