Weight plotting python script.