Great! Glad it's coming together for you.
By the way, maybe you already realize this, but if you're going to be using a lot of different Python functions for various purposes, the most efficient thing to do is to save all those different functions in one master python file.
You can then have a command that simply loads that master file when VC first launches, and then you're good to call those functions from any command on the fly, without separately using individual PY.ExecFile actions for each specialized command.
Even for one command, actually -- having the python file loaded once rather than each time the command is executed is more efficient.