writing hex data into a file,"f.write(bytes((i,)))"