AP source: Twins and Thome agree to deal