Update Bernoulli_NB_nltk_reuters_gini.py

Modularizing code