fix incompatibility with requests package