Python API for Jenkins CLI using popen calls