[tests] Port check scripts to python
16 files changed