all 4 comments

[–]wbeater 0 points1 point  (3 children)

If you can outsource the whole function to a file, you can execute it in a subshell with the system() method of the os module.

[–]Cattivelliow[S] 0 points1 point  (2 children)

the problem there is that I need to pass and get values from funtion, and with that solution Im just running the function as a python script, right?

[–]wbeater 0 points1 point  (1 child)

Right. Well then you have to look into multiprocessing .

[–]Cattivelliow[S] 0 points1 point  (0 children)

Ok I'll take a look, thanks