python 3 / factoring