Python Control Transfer Function Definition Code