python question: how get output python subprocess ?¿
Easiest method is using the subprocess module. If you're using Py3.5+ (you should be) see:
How do you store and manage your API keys?
Keepassxc on Linux, KeePassDroid on my Pixel2, db file sync'd via Dropbox. If you're talking about on your app or code, then each situation is different but it's normal to have environment variables store that or special configs that are only stored in the environments that need to use them.