Big reorganization to make glesutils more Pythonic