Private python dependencies and RuntimeEnv

I see a similar question here however from what I can tell they are using the pip option and not py_modules and from the quick skim of the code it looks like the two use different functions when calling pip install command.