Fix a handful of unit test regressions.
Fix a handful of unit test regressions.

This fixes some Python unit tests caused by the upgrade to a new kgb.
In Python, a few spies were using bad function signatures, which break
now in kgb. They've been fixed to use proper function signatures that
match the original function's requirements.

This is a crossport of 81237d5c026626e512a6e24592a32555a39e532e.

Testing Done:
Unit tests pass (using the new kgb).

reviewboard/reviewboard,chipx86/reviewboard,chipx86/reviewboard,reviewboard/reviewboard,reviewboard/reviewboard,reviewboard/reviewboard,chipx86/reviewboard,chipx86/reviewboard