functioning equality
expose length to python bindings