python3 fix (#48)