Fix qsub for multiple jobs
Fix indentations in api.py and add logging