20140906: python code for naive bayes classification