proc = subprocess.Popen(['cat', '/etc/services'], stdout=subprocess.PIPE,
    shell=True)
out, err = proc.communicate()
Assign output of os.system to a variable and prevent it from being displayed on the screen