Python Compare Two Sets Javascript Error Meaning Dictionary