I took a course in college on parasitology and that looks like ascaris worm. That can be treated usually with drugs that kill them and then you just poop them out. THis guy seems to have had so many that they deemed it a medical emergency and did the surgery!
Ascaris Lumbricoides Treatment | eHow
He probably got that from eating food that was contaminate with human feces. Once you get a few in there they will multiply, he must have had those for a long time!
My professor had an ascaris in a jar of formaldehyde and told us how it came from a little boy in the college town. He was a funny guy. He told us how he checked his kids for pin worms. You sneak into the bedroom in the middle of the night when the kids are asleep and look at their bung holes with a flashlight. The female worms come out your butt at night and lay their eggs around your anus.