applied updates to support py26