python/samba/gp_parse: Fix test errors with python3.8