title: Changing a function variable in a seperate Python script when it is imported
body: <p>I have the following code inside of a file called my_python_script- </p>
  
  <pre><code>def write_output(timestamp, name, alias, key, value, component, source, env):
      """ This is generic Function to write the output of the other scripts"""
  
      metrics_file = "/opt/reporting/data/metrics"
      data = "writing some stuff"
      with open(metrics_file, "a") as myfile:
          myfile.write(data)
  </code></pre>
  
  <p>When I do <code>import my_python_script</code>, I can successfully call the function from a separate script after I've imported it.</p>
  
  <p>Is there a way to make it so that I can change the value of "metrics_file" in the second script that I am importing my_python_script into?  I am trying to make it so that I can just overwrite the metrics_file variable and continue to use the same function?</p>
  
  <p>Thanks.</p>