Make alternatives module python 2.5 compatible