change the 2 script to adapt the python3 syntax