first try in python of the adapted power iteration algo
merge thomas branch into master