Fix deprecation warnings for asserts in Python 3.2+
Merge pull request #156 from jcjf/py3assert

Fix deprecation warnings for asserts in Python 3.2+.