code: def load_tasks(self, command='all'):
          
  
          results = dict(
              (db, self._get_task_objects('status:%s' % db, 'export'))
              for db in Command.files(command)
          )
  
          # 'waiting' tasks are returned separately from 'pending' tasks
          # Here we merge the waiting list back into the pending list.
          if 'pending' in results:
              results['pending'].extend(
                  self._get_task_objects('status:waiting', 'export'))
  
          return results
docs: Returns a dictionary of tasks for a list of command.