Can you post the script you're using?
Please post the actual script that you're using.
Is there a reason you don't just use the Orion module that comes with the SDK? It does all the unpacking for you and turns the results into simple arrays.