title: What is printing this number after my python script executes
body: <p>Please forgive me for asking a simple question of python.  This is my first time using python.</p>
  
  <p>I'm writing this script on a mac book pro for now.  It will probably be deployed on a Centos server later.  The script grabs gets file as an argument.  I'll deal with processing the output later.</p>
  
  <pre><code>#!/usr/bin/python
  import sys
  import subprocess
  
  if len(sys.argv) &lt; 2:
     print ("Not enough arguments")
     print ("Usage: " + sys.argv[0] + " log_file output_file")
     print ("i.e. " + sys.argv[0] + " stream.log output.csv")
     sys.exit(1)
  else:
     input = open (sys.argv[1])
     output = open (sys.argv[2],'w')
  
  proc = subprocess.Popen("cat " + input.name + " | cut -d ',' -f 3 | sort | uniq | wc -l", shell=True)
  
  print "got here"
  output.close()
  print "got here22222"
  input.close()
  </code></pre>
  
  <p>I just ran it from a terminal and it executes.  However, after it prints out the last </p>
  
  <p>got here22222</p>
  
  <p>there's a delay of a couple seconds and then it prints out 567.  However, there's no print 567 in my script above.  Does anyone know why it's printing this number?  How do I stop it from printing this number?  Thanks in advance for any help you can give me.</p>
  
  <pre><code>./test.py a b
  got here
  got here22222
  ~/test$      567
  </code></pre>