use re.split for maxsplit support in python 3.1 and change minimum python version to 3.1