Python Splitlines Remove Empty Rows In R