How To Implement Z Test In Python