Disable 2FA in your google account and make sure your account allow access to less secure apps
...2FA verification.
The selenium script can now login after I did that. But now will i need to always have the 2FA off? I guess the only thing i can do now is just to have a really strong password in order to keep my account safe?