title: python string strip not striping newline
body: <p>I am not able to strip the space and newlines. Any idea what might gone wrong?</p>
  
  <pre><code>    line_count = 0
      word_count = 0
  
      for fline in fh:
          line = repr(fline)
          line = line.strip()
          print line
          line_count += 1
          word_count += len(line.split())
  
      result['size'] = filesize
      result['line'] = line_count
      result['words'] = word_count
  </code></pre>
  
  <p>output</p>
  
  <pre><code>'value of $input if it is\n'
  ' larger than or equal to ygjhg\n'
  ' that number. Otherwise assigns the value of \n'
  ' \n'
  ' '
  </code></pre>