title: how to pass subprocess object to array
body: <ol>
  <li>I need to pass the subprocess object to an array, so I can process the contents of the path.</li>
  <li>here is my code</li>
  <li><p>under "/file/path" the content is as such:
  id1 name1 location1 hive    1 2014-10-01 4:02 /file/path</p>
  
  <pre><code>p = subprocess.Popen(["hdfs", "dfs", "-ls", "/file/path"], stdout=subprocess.PIPE)
  result = p.communicate()[0]
  path = []
  p = path.append(result)
  </code></pre>
  
  <p>but when I print p, it returns "None"        ,so what can I do if I need to pass the contents to an array, can I even do that in python?
  Thanks!</p></li>
  </ol>