Now Note.oid returns an Oid object, not an hex
Now Reference.target returns an Oid, not hex

If the reference is direct, of course.
The repository iterator now returns Oids, not hexs
Python 2: Return a byte string for hex oids