title: Python use timeout for subprocess with Popen
body: <p>Im running the following script with popen </p>
  
  <pre><code>process = subprocess.Popen(['python', 'solver.py', 'newsudoku.csp', '-i', 'arc'], stdout=subprocess.PIPE)
  out, err = process.communicate()
  </code></pre>
  
  <p>I need to process the output that is being stored in the out variable</p>
  
  <p>thing is this script varies in the time of its execution, and I need to kill it if it goes past 60 seconds. I know that python 3 has timeout for  check_call, but the other script im running is in python 2.7</p>
  
  <p>So how could I count 60 seconds and then kill the subprocess? ideally doing something else as well if this happens (adding 1 to a counter)</p>