Fix for #25 for Python 3

Python 3 uses __bool__ instead of __nonzero__ - following
the  suggestions on
https://docs.djangoproject.com/en/dev/topics/python3
/#boolean-evaluation to fix.