Some python and R code used by GAOS to interconnect Sloop and RMark