Typescript String Not In Array Python Initialize Set