`inreplace "pastebinit", "/usr/bin/python3", "#{Formula["python3"].opt_bin}/python3"` in that case.