how to filter only printable characters in a file on bash (linux) or python?,print('\n'.join(lines))