Change binary predicate to return int instead of bool

This is for C ABI compatibility
Add a struct for helping with basic low level access to dynd from python