Fix python bindings

This small tweak fixes the problem in the python bindings as noted in https://github.com/stp/stp/issues/126