Python Implementation of Sample Size Calculations