Revises tests for passing in existing PHP refs to Python.

And remove a pdb.