Thanks for this, it's going to be very usefull!
Just took a quick look at script.rpy to find that and for me it's at line 3327, though I'm still using v0.28.1 so that's probably why there's a difference in the line number.
I keep meaning to have a look at removing glasses from characters such as Nora and Alexia who have glasses permanently assigned no matter what outfit they wear, just have to go through some files to find the relevant lines of code. I have checked their specific wardrobe files and there's not a single outfit with glasses assigned so it's some other file that has the code.