title: Opening another .py file in a function to pass agruments in Python3.5
body: <p>I'm pretty new to Python and the overall goal of the project I am working on is to setup a SQLite DB that will allow easy entries in the future for non-programmers (this is for a small group of people who are all technically competent). The way I am trying to accomplish this right now is to have people save their new data entry as a .py file through a simple text editor and then open that .py file within the function that enters the values into the DB. So far I have:</p>
  
  <pre><code>    def newEntry(material=None, param=None, value=None):
          if param == 'density':
              print('The density of %s is %s' % (material, value))
  
      import fileinput
      for line in fileinput.input(files=('testEntry.py'))
          process(line)
  </code></pre>
  
  <p>Then I have created with a simple text editor a file called testEntry.py that will hopefully be called by newEntry.py when newEntry is executed in the terminal. The idea here is that some user would just have to put in the function name with the arguments they are inputing within the parentheses. testEntry.py is simply:</p>
  
  <pre><code>    # Some description for future users
      newEntry(material='water', param='density', value='1')
  </code></pre>
  
  <p>When I run newEntry.py in my terminal nothing happens. Is there some other way to open and execute a .py file within another that I do not know of? Thank you very much for any help.</p>