title: How to use a function containing eval in a file by variable defined at another file from that another file?
body: <p>Assume, I have created an python file (FirstFile.py) name which contains many functions and other things. One of the function is this (of course, it is simplified):</p>
  
  <pre><code>def func(string):
      assert eval(string)
  </code></pre>
  
  <p>Besides, I have created an python file which imports func() from the file mentioned above. Then this second python file try to execute following process:</p>
  
  <pre><code>from FirstFile import func
  amk = 1
  func("amk == 1")
  </code></pre>
  
  <p>When variable "amk" is in the first file, no problem reveals. However, when variable "amk" is in the second file, which is illustrated here, an error reveals:</p>
  
  <pre><code>NameError: name 'amk' is not defined 
  </code></pre>
  
  <p>Would you like to please help me solve this problem?</p>