import re
lines = [
'Ten Thousand,10000',
'Ten thousand',
'helloasdf,x',
'a,b,,c,',
',d,e'
]
regex = re.compile('(?:^|,)([^,]*)')
for line in lines:
print(regex.findall(line))
aW1wb3J0IHJlCgpsaW5lcyA9IFsKICAgICdUZW4gVGhvdXNhbmQsMTAwMDAnLAogICAgJ1RlbiB0aG91c2FuZCcsCiAgICAnaGVsbG9hc2RmLHgnLAogICAgJ2EsYiwsYywnLAogICAgJyxkLGUnCl0KCnJlZ2V4ID0gcmUuY29tcGlsZSgnKD86XnwsKShbXixdKiknKQpmb3IgbGluZSBpbiBsaW5lczoKICAgIHByaW50KHJlZ2V4LmZpbmRhbGwobGluZSkpCg==
['Ten Thousand', '10000']
['Ten thousand']
['helloasdf', 'x']
['a', 'b', '', 'c', '']
['', 'd', 'e']