os.popen()

os.popen(command[, mode='r'[, bufsize]]) → pipe

Open a pipe to/from a command returning a file object.