Following PDF document contains detailed explanation of the formalism used in PythTB package:
pythtb-formalism.pdf