Making code Python 3.0 compatible [removed splitlines(keepends=True)]
Fixing function name in comments