nit: instead edp[] use something like `environment, deployment, play = edp_for_instance(instance_id)` and use named arguments when you create `prefix`