Cleaned up python version, wrote R version of orient code.