title: python processing a log file and stripping characters
body: <p>I am making a quick log parse tool:</p>
  
  <pre><code>findme = 'important '
  logf = file('new.txt')
  newlines = []
  
      for line in logf:
          if findme in line:
              line.partition("as follows: ")[2]
              newlines.append(line) 
  
  
  outfile = file('out.txt', 'w')
  outfile.writelines(newlines)
  </code></pre>
  
  <p>Not sure how I should go about using something like partition to remove the text "as follows: " and everything before it on a per line basis. I get no error, but the text I am trying to strip remains in the output.</p>