def timid_relpath(arg):
<EOL>from os.path import isabs, relpath, sep<EOL>if isabs(arg):<EOL><INDENT>result = relpath(arg)<EOL>if result.count(sep) + <NUM_LIT:1> < arg.count(sep):<EOL><INDENT>return result<EOL><DEDENT><DEDENT>return arg<EOL>
convert an argument to a relative path, carefully