Added equals, not equals and str function to state.py