See my comment below. The (1/2) should not be in the dict, it should get converted to 2.