I haven't tested it and it might not work in a recent IE, but at least at the past IE used ActiveScript so any ActiveScript language could be used. Python can be installed as an ActiveScript engine and used via IE.
The same applies with other languages too (e.g. Perl, Ruby, etc).