Update mailgate script to use virtualenv if needed.

fix mailing list exception bug if virtualenv used