python: add interface to OPENANN_LOG(level, text)