`isinstance(activity_type, basestring)` includes both str and unicode.