update for python27