More Python2.6 doctest fixes.

The same number that was a problem in the README needed to be changed
in the docstrings.
Generalized string conversion function.

Also changed docstrings from const to static.
Added *.so to .gitignore.