I am new to Python.
There is another question, Are static class variables possible?, that has answered how to use static variables in Python. But it will be different when serializing a class using cloudpickle.
Because cloudpickle will serialize the whole class, including static variables, and restore when loaded. That makes two classes with the same name exist.
Does Python have things like classloader in Java, that can make sure only one class instance exists in the whole context?