binary data form 2by2 (really 3by3) now is called from R (python version not called anymore)