Python 3 support

Tested with Python 3.2 and 2.7. My app works fine with both versions and acceptance tests also succeed on both but have only been able to run unit tests on 2.7 since the mox mocking framework does not support Python 3 so far.