Update gpg-mailgate.py

- functionalized smime encryption
- fixed some bugs