Completed project euler problem 25 in Python.