fixed off-by-one error in pybfs/GenStubs.py

Rok, could you make sure I'm not doing something completely insane here?  Before I made this change the app would hang during GenGraph.py (though occasionally a host would finish its task), and after everything seemed to be working smoothly.