Add get_TF function with Python language