def unicode_compatible(cls):
    if not is_py3:
        cls.__unicode__ = cls.__str__
        cls.__str__ = lambda self: self.__unicode__().encode('utf-8')
    return cls
Call this to spawn a thread to complete the task.
dataset/ETHPy150Open jpvanhal/siilo/siilo/_compat.py/unicode_compatible--crossover with--dataset/ETHPy150Open openstack/ironic/ironic/conductor/task_manager.py/TaskManager.spawn_after