Python Empty Calc Gradient Network