added simple task handling to handle_call() method; renamed email task to mail because of some name collision in smtplib