def firstfile(urls):
    """
	Return the first URL from ``urls`` that exists as a real file.
	:const:`None` entries in ``urls`` will be skipped.
	"""
    for url in urls:
        if url is not None:
            if url.isfile():
                return url
