glcpp/tests: Convert shell scripts to a python script