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

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