integrate doctests with py.test