waf: Add function for checking for system python modules.