added run_pbs_thread() function to torque.py