Add requirements.txt for python virtualenv and error handling for
email submission.