Do not use Python logging as it is too slow. Just print to stdout.