A Python API sanity checker