Make Oid hashable
Fix unit tests with Python 2.6