add compatibility with python3
Created originally on Bitbucket by gaitan (Martín Gaitán)
Was already merged in Bitbucket before import, marked as merged by the import user
Created originally on Bitbucket by gaitan (Martín Gaitán)
Was already merged in Bitbucket before import, marked as merged by the import user