Refactor httpretty out of util.net tests. Use requests-mock package instead.