Add checks for Python header file and shared library.

Add checks already in spatialdata that also apply here.