added mail.py and mail_test.py to mail branch