ipython notebook pre-processing workflow specific to input for Naive Bayesian classifier