A direct conversion of T_Tide to Python