Adjust path setup of the python modules in __init__ such that it's
possible to run pytests from a mock root during package build/test.
Also add checks to pytest/CMakelists.txt to make sure pytest abd check
are present instead of failing with an inscrutible traceback if
they're not installed or usable.