Remove use of python 2.7 and up fct.