Could you re-write this as:

    candidates += [os.path.join(CERT_PATH_NAME, fname)
                            for fname in os.listdir(CERT_PATH_NAME)
                            if fname.endswith('.crt')]