The condition is known as Polycephaly and occurs when monozygotic twins fail to separate completely. Most organisms with this condition will not live for long, but occasionally you will get cases like this one, where the snake seems healthy enough and can live for years.
The heads act independently of one another, and will fight over food given the opportunity
The heads act independently of one another, and will fight over food given the opportunity