build: Move python detection back into waf (instead of in configure and Makefile)