interoperability with old python version