Merge pull request #89 from l1ll1/master

exception when dumping debug log
Merge pull request #90 from l1ll1/master

try loop around datetime.timedelta.total_seconds which doesn't exist on
if massive has no jobs qstat -x will return invalid xml. Throw away stderr on xmlsel as a result