Use single underscore for private vars/funcs

In many places, double underscores were used to prefix private vars and
functions. Per http://legacy.python.org/dev/peps/pep-0008/, only a
single underscore should be used.