Python3 Porting

Tested on django 1.6.5 and python 3.4
Instead of using six, would it make sense to do the following?

```python
try:
    idnum = int(idnum)
except (ValueError, TypeError):
    idnum = 0
```

That way we would not have to add six to the dependencies.