converted scripts to python3