Bug in langid.py

There was a bug in langid.py, instance was used instead of text. BTW, instance is initialized but never used.