Fixed compiler warning in Python bindings with gcc