""" pyte VTxxx terminal emulator demo
    Interpret a byte string containing text and ANSI / VTxxx control sequences
    Code adapted from the demo script in the pyte tutorial at
    http://pyte.readthedocs.org/en/latest/tutorial.html
    Posted to http://stackoverflow.com/a/30571342/4014959 
    Written by PM 2Ring 2015.06.02
"""
How to filter only printable characters in a file on Bash (linux) or Python?