Updated for Python2.6
First format
Euler for Python2.6
Further correction
Reindent
Update for Python3
Encoding
Fixed the tests
merged master