Python Kalman Filtering Theory