Would it make sense to just have these items in the map?
~~~python
six.binary_type: cql_encode_str,
six.text_type: cql_encode_unicode
~~~