Python3 doesn't have a getheaders() method, apparently.