moved c bindings closer to pyrf style