[Core] Use python's logging module