Python bindings: adding some const qualifiers