euler.py

improved the _factor_totient function