migrated most remaining doctests to unittests

left example.rst for merging with docs
these new tests are NOT working under python3.3 just yet