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

Fixes https://github.com/pydata/pandas/issues/8621
As mentioned in the github issue its a py3 only bug. I copied the test @rmorgans made