Prime Factor Kata in Python