It seems like you cannot access your previously in Pythonista set Keychain items inside the app extension.
SInce I'm pretty sure that this is not a bug, but an iOS security feature, I'd like to hear some best practices or work arounds around how to handle this kind of use case, where you want to want to talk to some 3rd party service through the app extension without exposing sensitive data.