Easy threading and multiprocessing for GUI applications