BUG: fixed chunksize guessed to 0 (py3 only). #8621