[#3] Python 3 fixes