If you are checking for the existence of a file you can do this like:

    if not os.path.exists(fname):
        log.info('%s not found' % fname)
        return False, None