Fixed a few string.splits which are no longer supported in python 3