New method for working with R and Python