Fix invalid syntax
Fix assertion for Python 2.6.9