Declared encodings for files that need them under Python 2.7.

Under Python 2.7 a couple of files containing non-ASCII characters needed encodings declared. With these changes I can use the code under Python 3.4 and 2.7, and 'testall.py' reports identical  results for both Python versions.