Servomechanism and Control Control Systems Engineering with Python First Step install control library $ pip3 install -U control Second Step Import prerequisites import numpy as np import matplotlib.pyplot as plt import control as co Python Control System Library Full library documentation you can find here