Lecture 8: Delta Rule python implementation