$ brew remove thrift
$ brew edit thrift
Replace the patch section with the following lines:
def patches
"https://gist.github.com/lxyu/5849125/raw/"
end
Install thrift
$ brew install thrift
$ workon your_virtualenv
$ pip uninstall -y thrift
$ pip install git+https://github.com/Eleme/thrift-python.git