Printing out variable values within PyMC run

Okay, so after some investigations into the Fortran code it is going to be way larger and more problematic than I initially anticipated to decouple it from txt I/O. So I need to worry about this again.

New question: The @theano.compile.ops.as_op module requires all inputs to be Theano tensor variables. However, my txt write function needs to send off other non-Theano variables as well. How can I work with this? Mainly what I need is a function that takes both PyMC realization variables and other arguments as inputs to write all of the instantaneous values to a txt file.

Thank you for your help thus far.