5.0.2 raises "Connection reset by peer" exception on pylxd's container.execute()

Looks like there is a fix for this in edge: https://github.com/lxc/pylxd/commit/9e73391db1437f88fc00d36c1b023c9eaf0d35ea

Try:

pip install git+https://github.com/lxc/pylxd