Refactor: extract get_divisors and put it in utils to be used on other problems
make var swap python-y