title: How can I parse a formatted file into variables using Python?
body: <p>I have a pre-formatted text file with some variables in it, like this:</p>
  
  <pre><code>header one
     name = "this is my name"
     last_name = "this is my last name"
     addr = "somewhere"
     addr_no = 35
  header
  header two
     first_var = 1.002E-3
     second_var = -2.002E-8
  header 
  </code></pre>
  
  <p>As you can see, each score starts with the string <code>header</code> followed by the name of the scope (one, two, etc.).</p>
  
  <p>I can't figure out how to programmatically parse those options using Python so that they would be accesible to my script in this manner:</p>
  
  <pre><code>one.name = "this is my name"
  one.last_name = "this is my last name"
  two.first_var = 1.002E-3
  </code></pre>
  
  <p>Can anyone  point me to a tutorial or a library or to a specific part of the docs that would help me achieve my goal?</p>