I have installed Safari webdriver and Selenium, yet when I execute the following code

```
from selenium.webdriver.common.by import By
from selenium import webdriver

from time import sleep

class class_name:
    def _init_(self, username, pw):
        self.username = username
        self.password = pw
        self.driver = webdriver.Safari()

        sleep(2)

    def login(self):

        self.driver.get("https://google.com")

class_name().login()

```

The following error message pops up

```

Traceback (most recent call last):
  File "/Users/malachinoel/PycharmProjects/MajorTomtoGroundControl/yes.py", line 22, in <module>
    class_name().login()
  File "/Users/malachinoel/PycharmProjects/MajorTomtoGroundControl/yes.py", line 18, in login
    self.driver.get("https://google.com")
AttributeError: 'class_name' object has no attribute 'driver'

```

Is there a way to fix this?