Added new core logic to email script and converted it to use PyCCN