net-snmp.rb: add optional python bindings to the formula

- Rebased megahall's PR #24279 on homebrew/master
- Modified to use `which python` as requested there