Easy threading and multiprocessing in GUI applications