translate percona toolkit from perl to python