fix for quickstart on python3

We need a little fix for loading cifar10 data.
The fix is same as Pull #1251 .