title: Executing Android commands through Python and storing the result in a list
body: <p>I am executing ADB commands through Python and it works fine till some extent. 
  The code is : </p>
  
  <pre><code>#!/usr/bin/python
  import sys
  import string
  import os
  import subprocess
  
  cmd = 'adb shell ls'
  s = subprocess.Popen(cmd.split())
  print "Again"
  t = str(s)
  for me in t.split('\n') :
      print "Something"
      print me[1]
  </code></pre>
  
  <p>The output i get is : </p>
  
  <pre><code>static-243:Scripts adityagupta$ ./hellome.py 
  Again
  Something
  s
  static-243:Scripts adityagupta$ config
  cache
  sdcard
  acct
  mnt
  vendor
  d
  etc
  ueventd.rc
  ueventd.goldfish.rc
  system
  sys
  sbin
  proc
  init.rc
  init.goldfish.rc
  init
  default.prop
  data
  root
  dev
  </code></pre>
  
  <p>Any suggestion i could make each a list and store each element in it. 
  The list should look like</p>
  
  <p>list = [cache, sdcard, acct, mnt, vendor ..] and so on.  </p>