I’m running the function get_content in parallel setting with multiprocess.Pool. Then it throws out an error NameError: name ‘session’ is not defined. Clearly, I defined it with session = requests.Session() . Could you please elaborate on this issue? Answer First of all, your import statement is incorrect and should be: (You had from multiprocess …, so I am not sure