Support bytes(x) on git objects.
Disable str on Python3, since there is no unicode string representation of these objects.
Fixes #609