Kalman filter in python to compute historical beta -- having problems