title: Python: Bizarre issue with imported function within While Loop
body: <p>So I have a bit of a conundrum. Let's start with the relevant fragment of my code. </p>
  
  <pre><code>from RECORD import recordSystem
  
  recTime = 30 #Amount of time(seconds) I want to record the audio input
  
  while True: #I want to keep this active while system is running
  
  #Standard raspberry Pi input sensors. 
  if(GPIO.input(LedPin4) == GPIO.LOW and GPIO.input(LedPin5) == GPIO.HIGH:  
    recordSystem(recTime) #when condition is met run the code. 
  </code></pre>
  
  <p>So the function I am trying to run comes from another script I wrote. And it works. It records analog audio and creates a .wav file in my project folder. The problem with this code is that it was working perfectly find yesterday and now is not. Nothing has been changed or touched. It just does not want to work. What happens is that the loop starts, and when the condition is met the function is launched properly and I get my "recording" notice in the compiler. Yet it NEVER stops recording. 
  When I just do the following outside of the loop: </p>
  
  <pre><code>recordSystem(recTime)
  </code></pre>
  
  <p>The function runs through properly without any problems. So it has to do something with calling the function inside the loop. Yet, it was working without any problems for a while. 
  Could anyone give me a best guest on what might be going on? 
  Much appreciated!   </p>