Migration using Python and pylxd

This looks like the issue. One of the two LXD server has not been configured. You can either do this interactively with sudo lxd init, or programmatically (i.e. API) by doing the tasks that lxd init does for you. The part that is missing, is the storage pool. One of the LXDs does not show any output at lxc storage list.

I have edited your earlier posts with those triples of backticks. Click on Edit on them to how it is done.
Also, see this guide on post formatting, How to best ask questions on this discussion forum