Fix for changed python behavior in homebrew