subprocess.Popen instead of os.popen and new filter thing