Ease Python 2.7 backward compatibility