Fix deprecation warnings for asserts in Python 3.2+

Silence the deprecation warnings for py3k.