python scripts for constructing Cognos filters