Ensure exception chaining works.
Hook throwing of PHP exceptions from python into to_php()