add compat with python3.2/django1.5