'Convert the key of Type KeyValueStore.Key to a string.
Keys are not JSON-serializable, so we can\'t use them as keys for the Django session.
The implementation is taken from cms/djangoapps/contentstore/views/session_kv_store.py.'

def _serialize_key(self, key):

    return repr(tuple(key))
