Exclude non python 3 compatible django verison from the test matrix.
urlparse not used here.
Fixed unicode errors.
Use new exception style
Move the urlparse lib compatibility to the compat file.