I am calling a C-library from python with ctypes. This library has some global variables defined inside. I call it within python with
lib = CDLL(path/to/library)
I need to use this library in the same code, but with different value of the global variables in the two cases. If I create two instances of the library with the above line (lib1 and lib2), will the instance be independent? or will the global variables be the same in the two cases?