ticket:5 python 2 compatibility