Patch for xenmigrate.py v0.7.4, or just get the one linked to on Pastebin by bret.miller:  http://pastebin.com/MK5Da8CB