A few minor cleanups

- Use the string method `splitlines()` instead of `split('\n')`
- Use the 'maxsplit' arg for split allowing values to contain an `=` character.