update gfx.py to reflect new structure