Prevent Attribute Error on six.PY2

I don't have much time to write a test for this but I know it really helped me.