log.py: refactored to support multiple outputs
cli.py: if a command returns smth then print this