Added assignment1.py

Assignment 1 contains final writeup.