Minimal python 3.3 support.

I had to change this to make it run under python 3.3