python écrire l'octet

f = open('./put/your/path/here.png', 'wb') # wb stand for "write byte" on the file
f.write(data)
f.close()
Maxime Merveille