Python 3.3 support

A couple of small changes allow using the extention with Python 3.3 and higher.
I also updated a test (see line 128 in test_all.py) - it failed on poth Python 2.7 and Python 3.3.