Unified command-line tool and python API for alerta