title: Remove ASCII control characters from text file Python
body: <p>I have a text file from which I have to read a lot of numbers (double). 
  It has ASCII control characters like DLE, NUL etc. which are visible in the text file. so
  when I read them to get only the doubles/ints from a line, I am getting erros like "invalid literals \x10". Shown below are the first 2 lines of my file.
  </p>
  
  <pre><code>DLE NUL NUL NUL [1, 167, 133, 6]DLE NUL NUL   
  YS FS NUL[0.0, 4.3025989e-07, 1.5446712e-06, 3.1393029e-06, 5.0430463e-06, 7.1382601e-06
  </code></pre>
  
  <p>How do I remove all these control characters from a text file at once, using Python?  I want
  this to be done before I parse the file into numbers ...</p>
  
  <p>Any help is appreciated!</p>