Week9 python codest

This is just the python codes that Erik had posted in a pynb format.