Cleaned up gdx.py