Fixed py3 compliance (shame on me)