Python Program Closing Instantly Email Automation