improve script.py to use Qsub object