fix python binding error during waf configure