Hook warden logging into python