move the mail import to the core model.py

... so that it isn't loaded initially by django