Fixed formatting and moved all scripts to python3.