pothos-python: dtype to numpy helper