Does anyone know a way to pass variables between two modules?

I've got code that is doing two separate things and now need to integrate them for more functionality. The easiest way for me to do this is by passing variables from one module to the other. I really don't want to copy and past the code into one module because I would like to keep them separate in case I need to reuse the code for another application.

Thanks in advance.