python code for the script filter

This is the python script that the workflow uses to process the query
term into a list of XML objects containing the search results.