Actually this was wrong, and those functions now return uuid.UUID.