We have a fairly well-considered form of FTO calculations that is a substantial python improvement of a python port of my original R code. The code is in conversation.py.
However, we don't have good documentation yet of how FTO is calculated and why.
Here is a lot of useful material, including a great flowchart by @bvreede.