compatiable with multiprocessing module.
Merge commit '10918836007b08740283fd85998459d744d81ed1' into dev