Fix dependency management for python bindings.