Port of Google's language-detection library to Python.