Bayesian spam filter implemented in python