Use python logging library