Python 3 support

Tested with:
- Python 3.3 / Django 1.6
- Python 2.7 / Django 1.6
- Python 2.7 / Django 1.3