Python implementation of Naive Bayes classifier for classifying articles in certain categories