Python script that collects call data from Asterisk CDR database and generates a tabulated email