Maybe your py file isn’t recognized as text because all Python files that I checked could be edited. If you want, you can send me the problematic file and I’ll have a look.
But we’re getting way off topic, maybe it’s best to open a new thread for this conversation, and mark this one here as solved.