Fix assert()
Fix a reference bug (found in pydebug mode) and potential crashes.
Fix test_pycc in pydebug mode
Merge pull request #656 from pitrou/pydebug_fixes

Pydebug fixes