fix for running pyramid based script as xml pipeline for sphinx search -...

... fixes #865 

Allows to run pyramid based scripts as a xml pipeline for sphinx search engine.