Make alternatives module python 5 compatible
Merge pull request #7343 from lberruti/alternatives_python5_2

Make alternatives module python 2.5 compatible