You can define and then call a python function but it won't change how you are doing what you are doing here, since all you are doing is calling a function anyway (int). You can't just put a python function into any action parameter in the LCB. It sounds like you want to call a bunch of different functions within an action parameter and you can't do that in VC.
My example above on the other hand, which uses results.regex will solve your problem, and allow you to do them all in one shot.
When you say "Is there any way to call a subroutine in any of the modules?" I actually don't know what you mean. I don't know what you mean by "the modules", and when you say "a subroutine" I am guessing that you are talking about a python function, but not sure. My answer is mostly based on the example you posted.