update codes and Demo_gmail.ipynb