Fixing PEP8 errors
Fixed encoding error with Python 3.x
Merge pull request #85 from beittenc/fix_pep8_and_unit_tests

Fix pep8 and unit tests