def parsePlist(s): if s.startswith("bplist"): return BPlistReader.plistWithString(s) else: return plistlib.readPlistFromString(s)