We can replace by from mail_factory import BaseMail, MailForm