Typescript String Includes In Python Iteration