Fixes for DefaultLanguageChanger

Fixes #3393 plus namespaced application support
Chained context managers are not supported in 2.6