Use nose to run doctests
Print str to avoid u prefix
Do not use >>> for non-doctest code example

Use literal block instead.
Fix renamed functions in docstring
Run doctests on Travis CI
Make doctest work on Python 2.5
Merge pull request #146 from tkf/doctest

Add doctest