Created by: gavin1332
Bug fixes
Others
As sys.stdout has an attribute buffer in python3 but no in python2. So in another way, we directly pull the worker log and write to the stdout of the main process
sys.stdout
buffer
stdout