Python and R Scripts updated