fix python-mechanize build