What do you mean? The line:
evacuations = {mig.instance_uuid: mig for mig in evacuations}
will create a dict that contains all of the found migrations, keyed by instance UUID.
What do you mean? The line:
evacuations = {mig.instance_uuid: mig for mig in evacuations}
will create a dict that contains all of the found migrations, keyed by instance UUID.