added maxsplit to re.split to specify max number of splits on a string