title: Python read files and parse lines
body: <p>In some directory (/patch/in) I have files named:</p>
  
  <pre><code>S0000001.ARQ
  S0000001.SRQ
  S0000002.ARQ
  S0000002.SRQ
  </code></pre>
  
  <p>...and so on</p>
  
  <p>Each file has basically same structure in it but with different values, example:
  `</p>
  
  <pre><code>----- BEGIN REQUEST -----
  RQID=S0000001.ACE
  POLICY=AUT
  G=STEVEN
  SN=JEENS
  SERIALNUMBER=060294223
  DOCUMENT=S0000001
  ----- END REQUEST -----
  </code></pre>
  
  <p>I want to read every file from dir and take out some values to use them later.
  What I have right now:</p>
  
  <pre><code>path = 'patch/in/*.ARQ'
  files=glob.glob(path)   
  for file in files:
      f=open(file, 'r')
      print '%s' %  f.readlines()
  </code></pre>
  
  <p>I want to print out(store) lines:</p>
  
  <pre><code>POLICY=AUT
  G=STEVEN
  SN=JEENS
  SERIALNUMBER=060294223
  DOCUMENT=S0000001
  </code></pre>
  
  <p>and then the actual values:</p>
  
  <pre><code>AUT
  STEVEN
  EENS
  060294223
  S0000001
  </code></pre>