import urllib, syshost = sys.argv[1]file = sys.argv[2]f = urllib.urlopen('gopher://%s%s' % (host, file))for line in f.readlines(): sys.stdout.write(line)