code: def wait_for_import_to_complete(self, import_id, region='us-east-1'):
          
          task_running = True
          while task_running:
              import_status_cmd = "aws ec2 --profile {}  --region '{}' --output 'json' describe-import-image-tasks --import-task-ids {}".format(self.aws_project, region, import_id)
              res = subprocess.check_output(shlex.split(import_status_cmd))
              print "Current status: {}".format(res)
              res_json = json.loads(res)
              task_running, image_id = self.check_task_status_and_id(res_json)
docs: Monitors the status of aws import, waiting for it to complete, or error out
          :param import_id: id of import task to monitor