I am personally not comfortable with giving my snakes any meds until I have a diagnosis. A few months without food or an irregular defecation is usually not cause for concern, but the two combined with weight loss is a good indicator of a parasitic infection, and appropriate meds for battling parasites depends completely on the type of parasite. Vets generally only charge $50 or less to run a fecal float and give you a definitive answer.