title: Ruby: get return value of python script
body: <p>My python script is like this: </p>
  
  <pre><code>def main():
    ret = [1, 2]
    return ret
  </code></pre>
  
  <p>and I call the python script from ruby like this: </p>
  
  <pre><code>output = system("python script.py")
  
  print output
  </code></pre>
  
  <p>However the value of output is true. I want to get [1, 2]. My question is how I can get the return value of the python script? </p>