fix typos in certgen/radicale, closes #297
reimport os when necessary, closes #289