Email parser, written in python