build: do not duplicate the checks for python in samba4