with open(sys.argv[1], 'rb') as f:
for n, L in enumerate(f):
try:
print(n, L.decode('utf8', 'ignore'))
except Exception as e:
print(n, 'vot blyad', e)
with open('holy_shit.csv', 'ab') as w:
w.write(L)
continue