Lift provides-printing function out.
Calling back out to expand %py_provide macro from within %py_subpackages
causes issues with syntax, so lift it out to a global function declared
in %py_init and just call it directly from each macro where it's needed.