Generalized (pyt) and (pyd) commands.

Description: (pyt) and (pyd) run py.test and doctest, respectively.

You can now call (pyt) and (pyd) from basically anywhere in the system. This
commit provides the dispatch logic to make that work.