class Example:
def __init__(self):
self.conn = sqlite3.connect("Example.sqlite3")
self.cursor = self.conn.cursor()
self._check_password = lambda word: raise ValueError("wrong password") if word != self.cursor.execute("Select password from members where login = ?", (user_login, )).fetchone()[0]
start = Example()