Typescript String Comparison In Python Program