Returning HazelSwitchFile from shell script?

I prefer to use bash, perl, or python for rule action scripting instead of Applescript but it seems that I can't return with a new HazelSwitchFile. The Hazel help says that the script must return (exit actually) with 0 for success and anything else is a failure. The HazelSwitchFile appears to be only accepted by Hazel via Applescript.
I'm not very proficient with Applescript but from what I've been able to find, the curly braces in the "return {HazelSwitchFile:...}" statement is simply returning a comma-separated list. If I output the same list format from a shell script, it doesn't work.
Is this a correct observation or am I just missing something here?
If this is the case, would it be possible to add support for this in a future version? It should be possible to check the execute result code for pass/fail (which it appears you are doing now) but also accept/parse the script's output for Hazel-friendly variables/lists/etc.
Thanks
I'm not very proficient with Applescript but from what I've been able to find, the curly braces in the "return {HazelSwitchFile:...}" statement is simply returning a comma-separated list. If I output the same list format from a shell script, it doesn't work.
Is this a correct observation or am I just missing something here?
If this is the case, would it be possible to add support for this in a future version? It should be possible to check the execute result code for pass/fail (which it appears you are doing now) but also accept/parse the script's output for Hazel-friendly variables/lists/etc.
Thanks