title: What could be causing python script to loop?
body: <p>Alright, I so here are the facts. I have 2 python scripts and I want Script1 to trigger Script2. I have tried the following ways to do this: </p>
  
  <p><code>from subprocess import call
   call(["python3", "script2.py"])</code></p>
  
  <p>The dreaded exec call:</p>
  
  <p><code>exec(open("script2.py").read())</code></p>
  
  <p>And finally: </p>
  
  <p><code>os.system("script2.py 1")</code></p>
  
  <p>So just to make sure I am giving you all the info needed. I want to run script1 first then once it is finished processing I want script1 to trigger script2. Currently no matter what I have tried, I get stuck in a loop where script one, just simply keeps running over and over again. </p>
  
  <p>Any ideas?</p>
  
  <p>Here is the actual code for script1: </p>
  
  <pre><code>import os
  
  """This looks like it is unnecessary but I can't include its context 
  in this post. Just know it has an actual purpose."""
  input_file = "gs://link_to_audio_file.m4a"
  
  audio = input_file
  output_format = os.path.basename(input_file).replace("m4a", "flac")
  
  os.system('ffmpeg -i %s -ar 16000 -ac 1 %s' % (audio,output_format))
  
  
  os.system("python3 script2.py")
  </code></pre>