Pytorch multiprocessing bug?

So I had a paragraph of code “train.py” that goes like

    do something
    print('log something...')
    do something else

and I used pytorch’s multiprocessing toolbox

    import torch.multiprocessing as mp

to execute multithreads of “train.py”, however, the print function works well under python3, but not python2. Why?