def path_to_selector(path):
    if path=="/":
        return "/"
    else:
        return path[2:] # Cuts initial slash and data type identifier
Takes a path as returned by urlparse and returns the appropriate selector.
dataset/ETHPy150Open babble/babble/include/jython/Lib/gopherlib.py/path_to_selector