Python code which computes bond YTMs, yield, and forward yield curves, as well as doing PCA on the log returns of yield and forward yield.