solv.py
import struct
with open('./flag_clip', 'r') as rf:
with open('./flag_out', 'wb') as wf:
rtxt = rf.read().replace('\n',' ')
for t in rtxt.split():
#print(t, '=>', int(t, 8))
wf.write(struct.pack("B", int(t, 8)))
print('end')