Well the format of my suggestion changed.  What I meant to do was:
                                                     jobs[jid] = 1
                                                     if len(jobids) > 1:
                                                                break

but I added + signs on the new code and that reformatted.