Fixed a few pylint errors/warnings.
Fixed a test case that was failing due to a Unicode problem.
Added .gitignore