ported bash plugin tests to python