Python 2 does not support named arguments in split
Removed maxsplit & str for Python 2 compatibility