Minor fix for Python 3

Caused by a150220cf2d2b16e4a0f047354a23c7b1a8f107d.