file_name = "file.out"
data = [120, 64, 97]
file_name = "file.out"

byteData = bytearray(data)
with open(file_name, "wb") as f:
    f.write(byteData)
with open(file_name, "rb") as f:
    data = f.read()
    list_data = list(data)
    print(list_data)