Completed project euler problem 2 in Python