I found this same problem and solution in my attempt to upgrade the `fontforge` formula to 2.0. I couldn't get your exact code to work for me, but this did:

```ruby
ENV['PYTHON_CFLAGS'] = `/usr/bin/python-config --cflags`.strip
ENV['PYTHON_LIBS'] = `/usr/bin/python-config --libs`.strip
```