PY3K compatibility
use custom __eq__ in Struct to fix a `if foo in dict` issue