Update lang.py

Application instance was cached, but never removed (caused conflict, when multiple applications are being run by single main.py file)
Merge pull request #1112 from smishlayev/patch-3

Update lang.py