update to run by python 2.6