Did you try to add the main guard as suggested in the error message?
Python on Windows has some issues regarding multi-processing, so try to add:
if __name__=='__main__':
    run() # your main code

to your code.