Fixed error with lexos.py code moved into function
Fixed error with lexos.py code moved into function

TheLady/Lexos,WheatonCS/Lexos,WheatonCS/Lexos,TheLady/Lexos,WheatonCS/Lexos,TheLady/Lexos,TheLady/Lexos