Fix python3 issues with slapd test code.

Change-Id: I317304604b680e4a23e69ff0d58fe2425f808fa0