fix j estimate for ws agents
Create native Python extension module

* modify SCons configuration to build a static library from shared
  objects (needed to link in the extension module)
* make the runner interface more C-compatible