We have prepared a Jupyter Notebook file that you may follow along. Please go to this page for Tractor-Hail implementation.