send mail added and pep8 fix