added 'threads' flag to 'run_pandaseq' function