for file in files:
    if isSQLite3(file):
        print("'%s' is a SQLite3 database file" % file)
else:
    print("'%s' is not a SQLite3 database file" % file)
How to check with Python and sqlite3 if one sqlite database file exists?