python decorator for printing api log info.