Python3 style exception compatibility

Edited exception to be compatible with Python 3+ as well as 2.5-. This was the only incompatibility I suffered using django-sslserver in Python 3.4.