A spam filter in Python