fix nameError issue on monitor write keyring

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
Merge pull request #31 from alfredodeza/master

fix nameError issue on monitor write keyring