plistlib.dump(value, fp, *, fmt=FMT_XML, sort_keys=True, skipkeys=False)
Write value to a plist file. Fp should be a writable, binary file object.
The fmt argument specifies the format of the plist file and can be one of the following values:
FMT_XML: XML formatted plist file
FMT_BINARY: Binary formatted plist file
When sort_keys is true (the default) the keys for dictionaries will be written to the plist in sorted order, otherwise they will be written in the iteration order of the dicti