plistlib.writePlistToString()

plistlib.writePlistToString(rootObject)[source]

Return ‘rootObject’ as a plist-formatted string.