fix for py27