Lecture 9: Back-Propagation python implementation