Maintain Python 2.x compat