investments in python and R