I don't think the API has it by default. Best thing I can think of is to get a list of all jobs, and query each on for a success, if your job fails often you could start with the last_good_build and work your way down/
I don't know Python that well, but I wrote a very bad script in GO to get all successful builds, you'd just have to add logic to stop at depth 2:
You would have to do something like:
builds, err := jenkins.GetAllBuildIds(jobName)
var count int64
if err != nil {
panic(err)
}
for _, build := range builds {
buildID := build.Number
data, err := jenkins.GetBuild(jobName, buildID)
if err != nil {
panic(err)
}
if "SUCCESS" == data.GetResult() {
<LOGIC>
}