Frontend work and some changes to python script