Fix 'brew install --with-python subversion'

Derived from https://github.com/mxcl/homebrew/pull/22668, which was about the Perl SWIG bindings. I just applied the same fix to Python.