Someone answered the question and then deleted his answer, I don’t know why he deleted it because he helped me. The following two lines were his contributions:
with open('output.png', 'wb') as f:
f.write(item[u'files'][u'screenshot'])
Then I used Tkinter to display the image:
from Tkinter import *
root = Tk()
topFrame = Frame(root)
topFrame.pack()
screenshot = PhotoImage(file="output.png")
label_screenshot = Label(topFrame, image=screenshot)
label_screenshot.pack()
root.mainloop()