def generic_filename(path):
for sep in common_path_separators:<EOL><INDENT>if sep in path:<EOL><INDENT>_, path = path.rsplit(sep, <NUM_LIT:1>)<EOL><DEDENT><DEDENT>return path<EOL>
Extract filename of given path os-indepently, taking care of known path
separators.

:param path: path
:return: filename
:rtype: str or unicode (depending on given path)