Use Python to perform hypothesis tests on population proportions