I have 2 classes that operate on the same variables but do the inverse of each other. Is there a way to transfer the variables between them without hard coding every exchange or combining all the values into one array? Combining the classes is not an option.

```
#pseudocode

class class1:
   def __init___(self):
      # code
      initialize variable MAIN

   # do stuff
   # do stuff
   make variable stuff
   # do stuff
   make variable thing
   # do stuff

class class2:
   def __init___(self):
      # code
      initialize variable stuff
      initialize variable thing
   # do stuff
   # do stuff
   undo variable stuff
   # do stuff
   undo variable thing
   # do stuff
   make variable MAIN

```

I want to be able to send data back and forth between `class1` to `class2` quickly.