updated backprop.py

wrote some backprop fn