adding a TODO to look for pytest; minor sanitisation in tests/python/api_lgrngn.py