Python demonstration for dbms, string formating and emailing using python