I wrote a small library for Language Prediction. This library supports 176 languages and prediction are pretty fast since it is powered by Fasttext.
It can be easily installed by
pip install whatthelang
Since it is model based , the prediction of language would be faster than other methods which solely rely on ngrams. Hope somebody finds this useful.