def pipepager(text, cmd):
 pipe = os.popen(cmd, 'w')
 try:
  pipe.write(text)
  pipe.close()
 except IOError:
  pass

def pipepager ( text , cmd ) : pipe = os . popen ( cmd , 'w' ) try : pipe . write ( text ) pipe . close ( ) except IOError : pass
page through text by feeding it to another program .