Python path detection code

Fixes this issue: https://github.com/titanous/homebrew-gnuradio/issues/7

With python path detection code from opencv.rb.

Tested on 10.8.1