Speed up and write splitLine more clearly
Remove unnecessary imports, clean namespace, rename a builtin-overriding variable