Fix python 3 conversion : remove call to getheaders.