Save python plistlib data
Question: how do I save the output I get for this program(as a variable), instead of it
being printed?

    
    
    import plistlib, time
    import plistlib as pl
    p=pl.readPlist("Restore.plist")
    print p["ProductType"]#I want this to be outputted as a variable, such as 'x' instead of   python printing it.
    print p["ProductVersion"]
    print p["ProductBuildVersion"]
    


Answer: something like this?

    
    
    outputfile = open('output.plist', 'w')
    outputfile.write(p["ProductVersion"])
    outputfile.close()
    

