On my system the following command segfaults too# printf "import requests\nr = requests.get('https://www.netbsd.org/')\n" | python2.7
after a bit of testing i can nail it down to security/py-ndg_httpsclient. if i remove the package, the previous command works without segfault.
regards Stefan