plugin/email module conflicts with python email module, so renamed it to mail