add error handling for importing six

It was introduced in Django 1.4.2; see: https://docs.djangoproject.com/en/1.5/topics/python3/#philosophy