import struct with open('/mnt/c/Users/wolff/Documents/SDKVita/VitaShell-master/media/Theme/theme.gif','rb') as f: d = f.read() w = struct.unpack('