This is an example that shows the differences in multiprocessing execution between POSIX systems (where fork() is available) and Windows (where multiprocessing does some magic to recreate the Python state in spawned interpreters, namely, reimporting the main module as well as the one where the function lives). It also shows that environment variable are inherited.
main running as __main__
func running