downgrading my use of python features newer than 2006