Python Function To Get Input From User In R