new string formatting

Partial prep for Python 3 support (issue #15).