compatibility with workers created in python 3