Python Set Check If Contains Javascript