gnm: C and Python bindings: doesn't work, just for testing