Alerts and aborts if 'requests' package is missing
Replaced errstr lambda with function, not always single quotes around error string