Python Control Transfer Function Formula Algebraica