Improved sample request for py3 compatibility.