import pyrebase


def initialise(FB_API_KEY, project_name):
    config = {
      "apiKey": FB_API_KEY,
      "authDomain": "{}.firebaseapp.com".format(project_name),
      "databaseURL": "https://{}.firebaseio.com".format(project_name),
      "storageBucket": "{}.appspot.com".format(project_name),
    }

    return pyrebase.initialize_app(config)


def store_url(is_yes, url, FB_USER, FB_PASS, firebase):
    # do nothing if it's unnecessary
    if not is_yes:
        return False

    # creates token every time maybe worth doing it once every 30m as they
    # expire every hour
    auth = firebase.auth()
    user = auth.sign_in_with_email_and_password(FB_USER, FB_PASS)

    db = firebase.database()
    data = {
        "url": url
    }

    db.child("users").push(data, user['idToken'])

    return False

@@ -26,26 +26,23 @@
 tialise(
-FB_API_KEY
+api_key
 , projec
@@ -85,18 +85,15 @@
 y%22: 
-FB_API_KEY
+api_key
 ,%0A  
@@ -365,32 +365,30 @@
 s, url, 
-FB_USER, FB_PASS
+user, password
 , fireba
@@ -648,24 +648,22 @@
 ord(
-FB_USER, FB_PASS
+user, password
 )%0A%0A 

Change variables to lower case