httpretty fixes for py26