py3 compatibility 01 -> 1