Python scripts to to preprocess emails