Make it work python 2