Win32 namespaces for accessing devices instead of file systems and for disabling string parsing can be helpful but not all APIs support their use.
Python’s keyring lib supports Windows win32crypto, Mac OS X’s SXKeychain, KDE’s KWallet, Gnome’s keyring, and encrypted or unencrypted password files. When your application wants to store or fetch data from the keyring, it will just work.