Class variable reset to default values when I try to access them

I was making an application in Python 3.9 and I made a class Config in that class I had some varibles like threads, but, I did this in my __init__() function in another class Main(): Config.threads = 100, but when I try to access it from another file like this:

import main
from main import *
import threading
from threading import Thread

def func():

__init__() is called at the end of my main.py file to start the program. Like this:


It simply prints 0, which is the default value assigned to Config.threads. What am I doing wrong here?

Python 12-12-20, 4:28 p.m. samrtr

Log-in to answer to this question.