fixed error with brackets in mail.py