Fix task_list referenced before assigned error 
Fix task_list referenced before assigned error 

When trying to run qbatchDriver in pure python you end up in this conditional branch where `task_list` isn't defined but the next line checks its length. This should fix it.
gdevenyi/qbatch,pipitone/qbatch