Make rstcheck more usable as a module