syntax change to support python26