dealing with python 2.6 legacy crap