For this to work you need to Activate Less Secure Apps on your google account.If you use another email, the process should be similar and it is certain that you will have to change some parts of the code.
Running main.py : (You have to click it)
Check out the other branches: