style fixes
mimetype => content_type (since django 1.3 is not supported anyway)