support for python 3.3

Update to support Python 3.3. All tests pass.