It's very simple. Use split function for strings.
#!/usr/bin/python
s = ('1496\n8584\n172\n5988\n7184\n704\n3448\n6580\n8504\n', '')
output=s[0].split()
print(output)
output you expected as list:
['1496', '8584', '172', '5988', '7184', '704', '3448', '6580', '8504']
If you want to get a tuple, use tuple function to convert.
#!/usr/bin/python
s = ('1496\n8584\n172\n5988\n7184\n704\n3448\n6580\n8504\n', '')
output=tuple(s[0].split())
print(output)
output as a tuple:
('1496', '8584', '172', '5988', '7184', '704', '3448', '6580', '8504')
Differences between tuple and list in python you can get here.