Making compatible between python versions.