Python script to compute minimal sample size.