Fixes resource path query in pyglass/app/PyGlassEnvironment.py and a few optimizations of PyGlassWindow.py.