fix python 2.x unbound error