Generate email notification for End cycle

Hi 

This pull request implements the email notification for End cycle using is_current attribute.
Also merges the earlier pull request and resolve merge conflicts with develop branch.

Regards
Mouli
There is no switch/case statement in Python, equivalent is is if/elif/else. 
However, as you indicate, there are alternative ways of handling using dictionaries for elegant way of handling similar to switch/case like statements, dictionary indexed by "case".