support old Python 3 versions