The problem is that FreeBSD Python does not support the code containing import distutils; to access distutils.sysconfig for the Python library path. I see that this code has been changed by cf6c220
Manually applying the patch allows pew to function.
Since FreeBSD Python ports all use PyPi for source downloads, it would need a new tag and new upload to PyPi to be able to fix this properly. Thanks.