using python email parsers instead of homebrewed one