def shift_path(script_name, path_info):
segment, rest = pop_path(path_info)<EOL>return (segment, join_uri(script_name.rstrip("<STR_LIT:/>"), segment), rest.rstrip("<STR_LIT:/>"))<EOL>
Return ('/a', '/b/c') -> ('b', '/a/b', 'c').