Fixed inconsistencies with the exceptions syntax, also fixed the email.parser import