str(', '.join(content_types))

what? you shouldn't have to `str` this