Update Index_Viewer_draw.py

fixes reference before assignment