Nice, thanks for this!
I didn't like a separate window for changing floppy disks, so i made something else based on you lib:
https://github.com/sonnenscheinchen/...ster/fs-uae.py It is some kind of wrapper for the (linux-) fs-uae executable with the ability to change floppies from the systray.
The main problem is still: If you quit the emulator without closing the connection there is (obviously) no way to disconnect and you get "connection refused" if you restart in a short period of time.