Python State Space Model Example