Solved Problem 17, Python

This one runs about nine times faster than the Scheme version. I thought my
code was a little more clever this time ;)