I want to exit the parallel process from one of the defs (using a return?), so that the program continues after the last line of this code:
from threading imp