Restore length check and handle TypeError instead
Restore length check and handle TypeError instead

In Python 2, str and bytes are the same type, so we need
instead depend on a TypeError being raised for an invalid
input to uuid.UUID(value)

mwstobo/marshmallow,marshmallow-code/marshmallow