Python Detect Encoding Of Words