Changed identation 2 spaces to 4 spaces
Other small changes including replacing double underscore prefix
with single underscore prefix in python.