* added sample.py
 * doctest sample cleanup