title: How to use argsparse to access part of a config file in python?
body: <p>I have this config.py file:</p>
  
  <pre><code># config.py 
  
  maria = dict(
      corners = [1,2,3,4],
      area = 2100
  )
  
  john = dict(
          corners = [5,6,7,8],
          area = 2400 
      )
  </code></pre>
  
  <p>and want to use parameters from it by running my main program using <code>argsparse</code>. somewhat like this: </p>
  
  <pre><code># main.py
  
  import config
  import argparse
  
  parser = argparse.ArgumentParser()
  parser.add_argument("user", help="maria or john")
  args = parser.parse_args()
  print(args.user)
  print(config.args.user['corners'])
  </code></pre>
  
  <p>when I run:</p>
  
  <pre><code>pyhton3 main.py maria
  </code></pre>
  
  <p>I get syntax error on the 2nd print, where I would like to get <code>[1,2,3,4]</code>.
  How can I use the argument from <code>argparse</code> as an attribute to access the appropriate data in the config file?</p>