Print Factors of a given Number in Python