log.warn() -> log.warning()
explizit close
change print to log output
bugfix cli unittest