added capture-subprocess function

Added xdist, retry, and timeout pytest plugins as well.