added sicp-1.17.py for the sicp homework 1.17