A working version on Python 2.6
Write interfaces to strings