vim: fix dynamic linking to Homebrew's python

Refactor Python dependency.