Fix lame bug
Work in python 3