R Function Multiple Inputs Using Split In Python Excluding Space