Update mailgate script to use virtualenv if needed.
Merge pull request #1012 from learning-unlimited/mailgate-virtualenv

Update mailgate script to use virtualenv if needed.