Make compatible in python 2.7