Python Different Error Types In Statistics