'Returns the next segment on PATH_INFO, or None if there is no
next segment.  Doesn\'t modify the environment.'

def path_info_peek(self):

    path = self.path_info
    if (not path):
        return None
    path = path.lstrip('/')
    return path.split('/', 1)[0]
