import threading


def thread(target, args=()):
    """Start thread for parallel processes."""
    this = threading.Thread(target=target, args=args)
    this.daemon = True  # will only run if main thread running
    this.start()
    return this