Python State Space Representation