made langid.py return Python data types