Update python.rb to match recent changes in Homebrew.