Python functions to help when migrating email accounts (requires Apple's Mail.app).