comparing speed in Python and R for linear regression