update for py27