Runtime error attemp to start a new process before the current process
Solution
As the note said, add __main__`` guard and add
freeze_support()` and the begining.
if __name__ == "__main__":
# multiprocessing.freeze_support() # may be not needed
start = time.time()
...
Ref: