Trouble with custom Bigfix Queries

Hello All,

I am attempting to employ a custom Bigfix query that can search for all software packages associated with a user. We have been running into a bit of trouble since Bigfix switched their database from ASCII to UTF-8 which has caused the bigfix database to balloon and older queries to fail. Our Bigfix engineer asked if we could use the following query which uses regex to filter out illegal characters.

This relevance query works on the Bigfix back end console and the Bigfix QNA page, but the (link removed:jasonwalker) script fails. I was wondering if anyone could provide any suggestions? Python 2.7.11. Any assistance is greatly appreciated.

I edited the link out because it appears to be an obfuscated link to an advertising site.

If you have an actual failing script please paste it here.