forked gloss libs for test.py.