I just tried and It works great! may I suggest to accept multiple destination accounts? perhaps with a config file, instead of a parameter? that way can be also possible to automate synchronizing the accounts that in multiple instances. Thanks for all the work.
I was just thinking about doing something like to migrate some of my communities over (and was even planning on writing it in Python). Just ran it and it worked perfectly. Thank you, this saved me a bunch of time!