def filename_from_url(url):
fname = os.path.basename(urlparse.urlparse(url).path)<EOL>if len(fname.strip("<STR_LIT>")) == <NUM_LIT:0>:<EOL><INDENT>return None<EOL><DEDENT>return fname<EOL>
:return: detected filename or None